path = require('path')

process.env.NODE_PATH = [
    path.resolve(__dirname)
    process.env.NODE_PATH
].join(":")

require('module').Module._initPaths()

Koa = require('koa')

module.exports = app = new Koa()

app.use require('./_app/raise')

require('./_app/url')(app)
